package com.meituan.pojo.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * @ClassName Comment
 * @Description TODO
 * @Author 南山北往
 * @Date 2022/9/27 11:07
 * @Version 1.0
 **/
@Data
public class CommentReq {

    private Integer cid;
    //评论时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
    //评论内容
    private  String word;
    //评论用户id
    private Integer uid;
    //评论商品id
    private Integer gid;
    //评论商品所属店铺id
    private Integer sid;
    //状态(1:正常,0:删除)
    private Integer state;
}
